#ifndef __EXECALL_H__
#define __EXECALL_H__

#ifdef _WIN32

#include <windows.h>
#include <process.h>
#include <io.h>
#include <stdlib.h>

#else

#include <fcntl.h>
#include <unistd.h>
#include <wait.h>

#define DUP(e) dup(e)
#define DUP2(new, old) dup2(new, old)
#define OPEN_FILE_WRO(fd, name) *(fd) = open(name, O_WRONLY | O_CREAT)
#define FD_IS_OK(fd) (fd > 0)
#define FILE_CLOSE(fd) close(fd)

#endif /*__WIN32*/

#endif /*__EXECALL_H__*/
